package com.tepth.remote.control.base.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 *
 * @author Hequn.Lee
 * @date 2018/11/29
 */
public class NotificationBean implements Parcelable {

    private int receiveId;
    private String context;
    private String currentDate;
    private int sendId;
    private int type;
    private int targetId;

    public NotificationBean() {
    }

    private NotificationBean(Parcel in) {
        receiveId = in.readInt();
        context = in.readString();
        currentDate = in.readString();
        sendId = in.readInt();
        type = in.readInt();
        targetId = in.readInt();
    }

    public static final Creator<NotificationBean> CREATOR = new Creator<NotificationBean>() {
        @Override
        public NotificationBean createFromParcel(Parcel in) {
            return new NotificationBean(in);
        }

        @Override
        public NotificationBean[] newArray(int size) {
            return new NotificationBean[size];
        }
    };

    public int getReceiveId() {
        return receiveId;
    }

    public NotificationBean setReceiveId(int receiveId) {
        this.receiveId = receiveId;
        return this;
    }

    public String getContext() {
        return context;
    }

    public NotificationBean setContext(String context) {
        this.context = context;
        return this;
    }

    public String getCurrentDate() {
        return currentDate;
    }

    public NotificationBean setCurrentDate(String currentDate) {
        this.currentDate = currentDate;
        return this;
    }

    public int getSendId() {
        return sendId;
    }

    public NotificationBean setSendId(int sendId) {
        this.sendId = sendId;
        return this;
    }

    public int getType() {
        return type;
    }

    public NotificationBean setType(int type) {
        this.type = type;
        return this;
    }

    public int getTargetId() {
        return targetId;
    }

    public NotificationBean setTargetId(int targetId) {
        this.targetId = targetId;
        return this;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(receiveId);
        dest.writeString(context);
        dest.writeString(currentDate);
        dest.writeInt(sendId);
        dest.writeInt(type);
        dest.writeInt(targetId);
    }
}
